package com.example.struction;

import java.util.LinkedList;

public class Main1 {
    public static void main(String[] args) {
        LinkedList<String> List=new LinkedList<String>();
        List.add("100");
        List.add("200");
        List.add("300");
        List.add("400");
        List.add("500");
        System.out.println("LinkedList 元素为：" + List.getFirst());
        System.out.println("LinkedList 元素为：" + List.getLast());
    }
}
